<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0;}
        .tatol{
            margin: 100px;
        }
        .tatol .btn{
            width: 200px;
            height: 50px;
            background: pink;
            line-height: 50px;
            text-align: center;
            border: 1px solid #000;
        }
        .tatol li{
            width: 200px;
            height: 50px;
            line-height: 50px;
            background: skyblue;
            text-align: center;
            border: 1px solid #000;
            list-style: none;
        }
        .choose{
            color: teal;
        }
    </style>
</head>
<body>
    
    <div class="tatol">
        <div>首页/<span></span></div>
        <div class="btn">项目案例</div>
        <ul>
            <li>员工管理</li>
            <li>电子简历</li>
            <li>网页游戏</li>
        </ul>
        <div class="btn">假装是啥</div>
        <ul>
            <li>你猜</li>
            <li>不猜</li>
            <li>傻呗</li>
        </ul>
    </div>
    <script src="../jquery-3.6.0.js"></script>
    <script>
        $('.btn').on('click',function(){
            $(this).next().finish().slideToggle(200)
        })
        $('li').on('click',function(){
            $('li').removeClass()
            $(this).addClass('choose')
            let word=$(this).html()
            $('span').html(word)
        })
    </script>
</body>
</html>